﻿using System;
using System.Threading;


class SimpleThread 
{
    String name;

    public static void Main(String[] args)
    {
        SimpleThread a = new SimpleThread("A");
        SimpleThread b = new SimpleThread("B");
        SimpleThread c = new SimpleThread("C");
        Thread athread = new Thread(new ThreadStart(a.run));
        Thread bthread = new Thread(new ThreadStart(b.run));
        Thread cthread = new Thread(new ThreadStart(c.run));
        athread.Start();
        
        bthread.Start();
        cthread.Start();
        Console.ReadLine();
    }

    SimpleThread(String pName)
    {
        name = pName;
    }

    public void run()
    {

        for (int i = 0; i < 20; i++)

        {
            String line = name + ":" + i;
            Console.WriteLine(line);
            
          
        }
    }
}